<?php	
	require "settings/config.php";
	require "layout.php";
	require "includes/session.php";
	require "includes/sql_functions.php";
	require "includes/slot_functions.php";
	require "includes/game_functions.php";
	
	render_header("View Game");
	
	if($_GET['notclear']==1)
	{
		echo "Failed to sign up for game. You are not cleared for gams signups.<br />\n";
	}
	
	if($_GET['mustgm']==1)
	{
		echo "Failed to sign up for game. You must sign up to GM at least ".OH_MIN_GMSLOTS_TO_PLAY." games before signing up as a player.<br />\n";
	}
	
	if($_GET['conflict']==1)
	{
		echo "Failed to sign up for game. You are scheduled for another game in this slot.<br />\n";
	}
	
	if($_GET['gmsignup']==1)
	{
		echo "You are now signed up as a GM.<br />\n";
	}
	
	if($_GET['pcsignup']==1)
	{
		echo "You are now signed up as a player.<br />\n";
	}
	
	if($_GET['exit']==1)
	{
		echo "You are no longer signed up for this game.<br />\n";
	}
	
	if($_GET['game'])
	{
		if($_GET['admin'])
		{
			oh_require_admin();
			game_show_info($_GET['game'],1);
		}
		else
		{
			game_show_info($_GET['game'],0);
		}
	}
	
	
		
	render_footer();
?>